package com.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pojo.dto.OrderDto;
import com.pojo.dto.OrderGoodsDto;
import com.pojo.dto.OrdersDto;
import com.pojo.entity.OrderGoods;

import java.util.List;

/**
 * @author : 杨世博
 * @date: Created in 15:35 2023/6/4
 */
public interface IOrderGoodsService extends IService<OrderGoods> {

    OrderDto submitOrder(OrderGoodsDto orderGoodsDto);

    Boolean deleteOrder(Integer id);

    List<OrdersDto> getLogistics(Integer uid);

    Boolean refund(Integer orderId);

    Boolean confirmReceipt(Integer orderId);

    List<OrdersDto> findPersonAllOrder(Integer uid);

    List<OrdersDto> findPersonNotPaidOrder(Integer uid);

    List<OrdersDto> findPersonPaidOrder(Integer uid);

    List<OrdersDto> findShopAllOrder(Integer merchantId);

    List<OrdersDto> findShopNotPaidOrder(Integer merchantId);

    List<OrdersDto> findShopRefundOrder(Integer merchantId);

    void payOrder(Integer orderId);

    void dealWithRefund(Integer orderId);

    void deliverGoods(Integer expressNo, String expressName, Integer orderId);

    List<OrdersDto> getShopDeliverOrder(Integer merchantId);
}
